using System;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Auditing;
using Volo.Abp.Modularity;
using Volo.Abp.BackgroundJobs;
using Volo.Abp.Identity;
using Volo.Abp.MultiTenancy;
using Volo.Abp.Localization;
using Volo.Abp.Authorization;
using Volo.Abp.Validation;

namespace UserManagementService;

[DependsOn(
    typeof(AbpAuditingModule),
    typeof(AbpBackgroundJobsAbstractionsModule),
    typeof(AbpIdentityDomainSharedModule),
    typeof(AbpMultiTenancyAbstractionsModule),
    typeof(AbpLocalizationModule),
    typeof(AbpAuthorizationAbstractionsModule),
    typeof(AbpValidationAbstractionsModule)
)]
public class UserManagementServiceDomainSharedModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        Configure<AbpAuditingOptions>(options =>
        {
            options.IsEnabled = true;
            options.IsEnabledForGetRequests = true;
            options.ApplicationName = "UserManagementService";
        });
    }
}